<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
<script>
    // 编写函数has(arr , 60) 判断数组中是否存在60这个元素，返回下标 考虑怎么返回才能区分不存在的情况
    function has(){
        for(i=0;i<arguments.length;i++){
            if(arguments[i]==60){
                console.log("存在60");
            } else {
                console.log("不存在60");
            }
        }
    }
    var arr = [2,6,9,22,43,60,87];
    var arr2 =[2,6,9,22,43,87];
    has(arr,60);
    has(arr2,60);

</script>
</body>
</html>